package c.main.service;

import c.main.domain.LoginUser;
import c.main.jdbc.JdbcTemplate;

/**
 * Author: chengwei
 * Date:   2016/3/17
 * Time:   9:33
 */
public interface SysService {
    
    boolean hasFunction(LoginUser user,String functionId);

    boolean hasAction(LoginUser user,String functionId,String actionCode);

    boolean hasAction(LoginUser user,String actionId);

    boolean hasFunction(LoginUser user, String functionId, JdbcTemplate jdbcTemplate);

    boolean hasAction(LoginUser user,String functionId,String actionCode, JdbcTemplate jdbcTemplate);

    boolean hasAction(LoginUser user,String actionId, JdbcTemplate jdbcTemplate);


    /**
     * 判断用户是否有访问action的权限
     * @param user
     * @param jdbcTemplate
     * @param actionName
     * @return
     */
    boolean hasAction(LoginUser user,JdbcTemplate jdbcTemplate,String actionName);
    
}
